package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName public_ware
 */
@TableName(value ="public_ware")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PublicWare implements Serializable {
    /**
     * 公共物品序号
     */
    @TableId(value = "PUBlIC_ID", type = IdType.AUTO)
    private Integer publicId;

    /**
     * 公共物品编号
     */
    @TableField(value = "PUBlIC_NO")
    private String publicNo;

    /**
     * 公共物品名称
     */
    @TableField(value = "PUBlIC_NAME")
    private String publicName;

    /**
     * 公共物品使用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "PUBlIC_TIME")
    private Date publicTime;
    /**
     * 公共物品所在部门id
     */
    @TableField(value = "PUBlIC_DEPT")
    private String publicDept;

    /**
     * 公共物品所在部门
     */
    @TableField(value = "PUBlIC_BRANCH")
    private String publicBranch;

    /**
     * 公共物品单价
     */
    @TableField(value = "PUBlIC_SUM")
    private Double publicSum;

    /**
     * 公共物品数量
     */
    @TableField(value = "PUBlIC_AMOUNT")
    private Integer publicAmount;

    /**
     * 公共物品状态
     */
    @TableField(value = "PUBlIC_STATUS")
    private String publicStatus;

    /**
     * 公共物品备注
     */
    @TableField(value = "PUBlIC_REMARK")
    private String publicRemark;

    /**
     *分类
     */
    private Coden coden;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}